If WindowOverlay.relayout() is called without animation, we must stop
any preexisting animation, otherwise it will continue to run with the
previous parameters and cause the overlay to end up in the wrong position.
https://bugzilla.gnome.org/show_bug.cgi?id=693970
},
relayout: function(animate) {
- let [cloneX, cloneY, cloneWidth, cloneHeight] = this._windowClone.slot;
-
let button = this.closeButton;
let title = this.title;
+ let border = this.border;
+
+ Tweener.removeTweens(button);
+ Tweener.removeTweens(title);
+ Tweener.removeTweens(border);
+
+ let [cloneX, cloneY, cloneWidth, cloneHeight] = this._windowClone.slot;
let layout = Meta.prefs_get_button_layout();
let side = layout.left_buttons.indexOf(Meta.ButtonFunction.CLOSE) > -1 ? St.Side.LEFT : St.Side.RIGHT;